package com.shycloud.mido.member.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shycloud.mido.member.api.entity.MusicCodeEntity;
import com.shycloud.mido.member.mapper.MusicCodeMapper;
import com.shycloud.mido.member.service.MusicCodeService;

import lombok.AllArgsConstructor;

/**
 * 视听受权码 实现类
 * @author yyy
 */
@Service
@AllArgsConstructor
public class MusicCodeServiceImpl extends ServiceImpl<MusicCodeMapper, MusicCodeEntity> implements MusicCodeService {

	private final MusicCodeMapper musicCodeMapper;

	/**
	 * 根据授权码查询
	 * @param code
	 * @return
	 */
	@Override
	public MusicCodeEntity selByCode(String code){
		return musicCodeMapper.selByCode(code);
	}
}
